import time

from autoselenium_test.base import Basic
from selenium.webdriver.common.by import By



#继承main方法,main中传递了访问地址后的操作
class Login(Basic):
    #跳转到上传文件夹页面
    def upload_file(self):
        time.sleep(3)
        self.driver.find_element(By.XPATH,'//*[@id="uploadButton"]/span').click()
        self.driver.find_element(By.XPATH,'//*[@id="upload-content"]//*[@class="el-link el-link--primary"]/span').send_keys('./upload.txt')

        print('上传文件信息')

    def new_folder(self):
        time.sleep(3)
        self.driver.find_element(By.XPATH,'//*[@class="create-folder-button-content"]//span').click()
        print('新增文件夹')

    #跳转到分享页面
    def share(self):
        pass
    #跳转到复制页面
    def copy_as(self):
        pass
    #跳转到移动页面
    def move(self):
        pass
    #跳转到下载页面
    def download_file(self):
        pass
    #跳转到删除文件页面
    def delete_file(self):
        pass
